package com.bamboo.eduorder.feign.fallback;

import com.bamboo.eduorder.entity.dto.CourseWebVo;
import com.bamboo.eduorder.feign.CourseFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author jack.wu
 * @version 1.0
 * @date 2020-07-20
 */
@Slf4j
@Component
public class CourseFeignClientFallback implements CourseFeignClient {

    @Override
    public CourseWebVo getCourseInfo(String id) {
        log.info("进入熔断方法{}", "CourseFeignClientFallback");
        CourseWebVo courseWebVo = new CourseWebVo();
        courseWebVo.setId(id);
        return courseWebVo;
    }
}
